Skip to content

Dropped ??? in arrayclass #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2015
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 15, 2015

The patch caused the built dotty not to run anymore. Since the prupose of the ???
was to find out where it was called I inserted the stacktrace that caused dotc
to fail.

I wonder how this passed the tests? Dotc became completely useless for me when I
ran it from the command line.

Review by @DarkDimius. (Let's get this in quickly. I cannot pull anymore without this fix being in).

The patch caused the built dotty not to run anymore. Since the prupose of the ???
was to find out where it was called I inserted the stacktrace that caused dotc
to fail.

I wonder how this passed the tests? Dotc became completely useless for me when I
ran it from the command line.
@DarkDimius
Copy link
Contributor

This passed tests, as you have a different classpath setup.
For testing, we have scala-compiler and scala-library on boot class path. This means that they take precedence over what we define in our jars in tests. This should not be the case for run tests.

// Exception in thread "main" scala.NotImplementedError: an implementation is missing
// at scala.Predef$.$qmark$qmark$qmark(Predef.scala:225)
// at scala.runtime.ScalaRunTime$.arrayClass(ScalaRunTime.scala:53)
// at scala.Array$.fill(Array.scala:281)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which version of scala-library do you have? I do not see any usage of arrayClass in Array.scala:281.

DarkDimius added a commit that referenced this pull request May 15, 2015
@DarkDimius DarkDimius merged commit d3d13f6 into scala:master May 15, 2015
@DarkDimius
Copy link
Contributor

Let's get this in quickly. I cannot pull anymore without this fix being in

It's in now.

@DarkDimius
Copy link
Contributor

I still do not see how this method is used and for what. It seems to be some pre-classTag thing, as it duplicates functionality available there. As I do not see a way of fixing this method to work for value classes, I want to understand what is it currently used for and see if we can replace all of its usages by equivalent usage of ClassTag.wrap.

@allanrenucci allanrenucci deleted the fix/ScalaRunTime2 branch December 14, 2017 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants